package com.jwaoo.chat;

/**
 * Created by jwaoo on 2017/7/1.
 */

public class ChatConstants {
    /**
     * 未知消息类型
     */
    public final static int undef = -1;

    /**
     * 文本消息类型
     */
    public final static int text = 1;

    /**
     * 图片消息
     */
    public final static int image = 2;

    /**
     * 音频消息
     */
    public final static int audio = 3;

    /**
     * 视频消息
     */
    public final static int video = 4;

    /**
     * 位置消息
     */
    public final static int location = 5;

    /**
     * 文件消息
     */
    public final static int file = 6;

    /**
     * 音视频通话
     */
    public final static int avchat = 7;

    /**
     * 通知消息
     */
    public final static int notification = 8;

    /**
     * 提醒类型消息
     */
    public final static int tip = 9;

    /**
     * 阅后即焚
     */
    public final static int snap = 10;

    public final static int audio_chat = 11;

    public final static int video_chat = 12;

    /**
     * 草稿
     */
    public final static int draft = -1;

    /**
     * 正在发送中
     */
    public final static int  sending = 0;

    /**
     * 发送成功
     */
    public final static int success = 1;

    /**
     * 发送失败
     */
    public final static int fail = 3;

    /**
     * 消息已读
     * 发送消息时表示对方已看过该消息
     * 接收消息时表示自己已读过，一般仅用于音频消息
     */
    public final static int read = 5;
    public final static int missed = 6;
    public final static int rejected = 7;

    /**
     * 未读状态
     */
    public final static int unread = 4;



    public final static int P2P = 1;
    public final static int System = 2;

    /**
     * 发出去的消息
     */
    public final static int Out = 0;
    /**
     * 接收到的消息
     */
    public final static int In = 1;

    //默认状态
    public final static int def = 0;
    //文件正在传输
    public final static int transferring = 1;
    //文件传输完成
    public final static int transferred =2;

    public final static String ACTION = "com.broadcast.message.session";
    public final static String ACTION_MESSAGE = "com.broadcast.message";
}
